package bd

import android.app.Dialog
import android.content.Context
import android.content.DialogInterface
import android.view.LayoutInflater
import android.widget.TextView
import androidx.databinding.DataBindingUtil
import oa.lla.cca.R
import oa.lla.cca.databinding.DisposeDialogLayoutBinding

class FC:Dialog {
    private var dataBind: DisposeDialogLayoutBinding? = null
    private var mContext:Context? = null
    constructor(context: Context) : super(context){
        this.mContext = context
        initView()
    }
    constructor(context: Context, themeResId: Int) : super(context, themeResId){
        this.mContext = context
        initView()
    }
    constructor(
        context: Context,
        cancelable: Boolean,
        cancelListener: DialogInterface.OnCancelListener?
    ) : super(context, cancelable, cancelListener){
        this.mContext = context
        initView()
    }


    private fun initView(){
        val inflate = LayoutInflater.from(mContext).inflate(R.layout.dispose_dialog_layout, null)
        dataBind = DataBindingUtil.bind<DisposeDialogLayoutBinding>(inflate)
        setContentView(dataBind?.root!!)
    }

    fun getSaveText():TextView{
        return dataBind?.textSave!!
    }

    fun getTipsText():TextView{
        return dataBind?.txtMsg!!
    }
    fun getDeleteText():TextView{
        return dataBind?.textDelete!!
    }




}